import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/',
      name: '登录',
      
      component: () => import('../views/Login.vue'),
    },
    //登录
    {
      path: '/Shouye',
      name: '首页',
      
      component: () => import('../views/Shouye.vue'),
    },
    ///科室信息
    {
      path: '/DepAdd',
      name: '科室信息新增',
      
      component: () => import('../views/Depart/DepAdd.vue'),
    },
    {
      path: '/DepShow',
      name: '科室信息显示',
      
      component: () => import('../views/Depart/DepShow.vue'),
    },
    {
      path: '/DepUpd',
      name: '科室信息修改',
      
      component: () => import('../views/Depart/DepUpd.vue'),
    },

    //病房信息
    {
      path: '/BingAdd',
      name: '病房信息新增',
      
      component: () => import('../views/BingRoom/BingAdd.vue'),
    },
    {
      path: '/BingShow',
      name: '病房信息显示',
      
      component: () => import('../views/BingRoom/BingShow.vue'),
    },
    //医生信息
    {
      path: '/DocAdd',
      name: '医生信息新增',
      
      component: () => import('../views/Doctor/DocAdd.vue'),
    },
    {
      path: '/DocShow',
      name: '医生信息显示',
      
      component: () => import('../views/Doctor/DocShow.vue'),
    },
  ],
})

export default router
